import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/tabbar/Home.vue'
import Member from '@/components/tabbar/Member'
import Shopcar from '@/components/tabbar/Shopcar'
import Search from '@/components/tabbar/Search'
import Newslist from '@/components/news/Newslist'
import Newsinfo from '@/components/news/Newsinfo'
import Photolist from '@/components/photos/Photolist'
import Photoinfo from '@/components/photos/photoinfo'
import GoodList from '@/components/goods/GoodList'
import Goodsinfo from '@/components/goods/Goodsinfo'
import GoodsDesc from '@/components/goods/GoodsDesc'
import GoodsComment from '@/components/goods/GoodsComment'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', component: Home },
    { path: '/Home', component: Home },
    { path: '/Member', component: Member },
    { path: '/Shopcar', component: Shopcar },
    { path: '/Search', component: Search },
    {path:'/Home/Newslist',component:Newslist},
    {path:'/Home/Newsinfo/:id',component:Newsinfo},
    {path:'/Home/Photolist',component:Photolist},
    {path:'/Home/Photoinfo/:id',component:Photoinfo},
    {path:'/Home/GoodList',component:GoodList},
    {path:'/goodslist/goodsinfo/:id',component:Goodsinfo},
    {path:'/Home/GoodsDesc/:id',name:'GoodsDesc',component:GoodsDesc},
    {path:'/Home/GoodsComment/:id',name:'GoodsComment',component:GoodsComment}
  ]
})
